<!-- $Id: base.html 97 2012-06-23 09:47:43Z dougal.scott@gmail.com $ -->
<!-- $HeadURL: https://hostinfo.googlecode.com/svn/trunk/hostinfo/hostinfo/templates/base.html $ -->
<!--
    Copyright (C) 2012 Dougal Scott

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<html>
<head>
<title>{% block title %}No title set {% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/static/hostinfo_style.css"/>
</head>

<body>
<table border=1>
<tr>
<td width="10%" valign="top">
<div id="sidebar">
    {% block sidebar %}
	<a href="/hostinfo/">Home</a></br>
	<form action="/hostinfo/handlePost/" method="POST"> {% csrf_token %} <input type="search" value="Hostname" name="hostre"> </form></br>
	{% if csvavailable %}
	<a href="{{csvavailable}}"><img src="/images/csv_report.gif" alt="CSV Report"></a>
	{% endif %}
	<a href="mailto:dougal.scott@gmail.com&subject=HostInfo Suggestion"><img src="/images/suggestion.gif" alt="Send a suggestion to Sysadmins"></a>

	<br>
    	{% if user.is_authenticated %}
	    <a href="/hostinfo/accounts/logout/">Logout {{user.username}}</a>
	{% else %}
	    <a href="/hostinfo/accounts/login/">Login</a>
	{% endif %}

    {% endblock %}
</div>
<div id="optionsbar">
    {% block options %}
    {% endblock %}
</div>
</td>

<td width="90%">
<div id="content">
    {% block content%}
    {% endblock %}
</div>
</td>
</tr>
{% if elapsed %}
    <tr><td colspan=2> Took {{ elapsed }} seconds to run</td></tr>
{% endif %}
{% if debug %}
    <tr><td colspan=2> {{ debug }} </td></tr>
{% endif %}
</table>

</body>

</html>
{# EOF #}
